﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using PatternWell.PAC;

namespace $safeprojectname$
{
    /// <summary>
    /// Factory class that loads complete instances of PACS.
    /// <remarks>
    /// To add additional PAC's to the loader use one of the following four snippets
    /// pacFullLoader - Will create a PAC that supports a View, Controller and Model
    /// pacViewControllerLoader - Will create a PAC that supports a View and a Controller
    /// pacModelControllerLoader - Will create a PAC that supports a Controller and a Model
    /// pacControllerLoader - Will create a PAC that supports strickly a Controller
    /// </remarks>
    /// </summary>
    public static class PACLoader
    {

        /// <summary>
        /// Creates a instance of the 'Main' pac and returns it.
        /// </summary>
        /// <returns>Created instance of the pac cast to the pac interface</returns>
        public static Contract.PAC.IMainPACContract CreatePACMain()
        {
            //Creating controller
            Contract.PAC.IMainPACContract controller = new Controller.MainController();

            //Creating View
            Contract.View.IMainViewContract view = new View.MainView();

            controller.AttachView(view);

            return controller;
        }
    }
}
